﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Managistics.Model.ValueObject
{
    public class PurchaseOrderDetailVO
    {
        private float _unitPriceNn;
        private string _orderidNn;

        public PurchaseOrderDetailVO() 
        { 

        }

        public virtual float UnitPrice
        {
            get
            {
                return this._unitPriceNn;
            }
            set
            {
                this._unitPriceNn = value;
            }
        }

        public virtual string Orderid
        {
            get
            {
                return this._orderidNn;
            }
            set
            {
                this._orderidNn = value;
            }
        }
        
        public string PriceFormated
        { 
            get { 
                return string.Format(System.Globalization.CultureInfo.GetCultureInfo("vi-VN"), "{0:#,##0.00}", this.UnitPrice); 
            }            
        }

        public List<PurchaseOrderDetail> purchaseOrderDetailList { get; set; }

        //Pagination; 
        public int page_number = 1;
        public int page_size = 14;
        public int total_row = 0;
        public int total_page = 0;
    }
}
